import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    {
      path: '/patient',
      name: 'patient',
      component: () => import('../views/element/ElementView.vue')
    },
    {
      path: '/doctor',
      name: 'doctor',
      component: () => import('../views/element/DoctorView.vue')
    },
    {
      path: '/',
      redirect: '/patient',
    },
  ],
  mode: "history"//干掉地址栏里边的#号键

})





















